<?php
header("content-type:text/html;charset=utf-8");
session_start();
if($_SESSION['admin']!=""){
	include("../conn/conn.php");
	$id=$_GET['id'];
	$sql="delete  from tb_video where id=".$id;
	mysqli_query($link,$sql);
	echo "<script>alert('删除成功');location='video_manager.php';</script>";
}

	else{
		echo "<script>alert('请登陆再管理');location='index.php';</script>";
		
		}
?>